using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// TimeTable
    /// </summary>    
	[Table("time_table")]
    public partial class TimeTableEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 课表名称
        /// </summary>
		[Column("table_name")]
        public string TableName { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("clazz_id")]
        public long ClazzId { get; set; }
    
        /// <summary>
        /// 备注
        /// </summary>
		[Column("remark")]
        public string Remark { get; set; }
    
        /// <summary>
        /// 创建时间
        /// </summary>
		[Column("create_time")]
        public DateTime? CreateTime { get; set; }
    }

	public class TimeTableEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<TimeTableEntity>(new EntityTypeConfiguration<TimeTableEntity>());
        }
    }
}

